let p = project("foo")
.file("Cargo.toml", &basic_bin_manifest("foo"))
- .file("src/foo.rs", r#"
+ .file("src/main.rs", r#"
#![feature(test)]
extern crate test;
let p = project("foo")
.file("Cargo.toml", &basic_bin_manifest("foo"))
- .file("src/foo.rs", r#"
+ .file("src/main.rs", r#"
#![feature(test)]
extern crate test;
fn main() {}
assert_that(p.cargo_process("bench").arg("-v").arg("hello"),
execs().with_stderr(&format!("\
[COMPILING] foo v0.5.0 ({url})
-[RUNNING] `rustc [..] src[/]foo.rs [..]`
+[RUNNING] `rustc [..] src[/]main.rs [..]`
[FINISHED] release [optimized] target(s) in [..]
[RUNNING] `[..]target[/]release[/]deps[/]foo-[..][EXE] hello --bench`", url = p.url()))
.with_stdout_contains("test bench_hello ... bench: [..]"));
let p = project("foo")
.file("Cargo.toml", &basic_bin_manifest("foo"))
- .file("src/foo.rs", r#"
+ .file("src/main.rs", r#"
#![feature(test)]
extern crate test;
fn hello() -> &'static str {
`(left == right)`[..]", p.url()))
.with_stderr_contains("[..]left: `\"hello\"`[..]")
.with_stderr_contains("[..]right: `\"nope\"`[..]")
- .with_stderr_contains("[..]src[/]foo.rs:14[..]")
+ .with_stderr_contains("[..]src[/]main.rs:14[..]")
.with_status(101));
}